import request from '@/utils/request'

// 查询维保结算列表
export function listFwSettlementRecord(query) {
  return request({
    url: '/device/fwSettlementRecord/list',
    method: 'get',
    params: query
  })
}

// 查询维保结算详细
export function getFwSettlementRecord(id) {
  return request({
    url: '/device/fwSettlementRecord/' + id,
    method: 'get'
  })
}

// 新增维保结算
export function addFwSettlementRecord(data) {
  return request({
    url: '/device/fwSettlementRecord',
    method: 'post',
    data: data
  })
}

// 修改维保结算
export function updateFwSettlementRecord(data) {
  return request({
    url: '/device/fwSettlementRecord',
    method: 'put',
    data: data
  })
}

// 删除维保结算
export function delFwSettlementRecord(id) {
  return request({
    url: '/device/fwSettlementRecord/' + id,
    method: 'delete'
  })
}
